<!--
 * @description: 
 * @Date: 2022-11-24 19:18:43
 * @example: 
 * @params: 
-->
<template>
    <div>
      <iframe id="iframe" :src="iframeSrc" style="height: 100vh" width="100%" frameborder="0">
      </iframe>
    </div>
  </template>
  <script>
  export default {
    data() {
      return {
        iframeSrc:"http://localhost:3100/"
      };
    },
    mounted() {
      window.addEventListener('message', (ev) => {
        const tenantObj  = ev.data.TenantInfo || null ;
        if(tenantObj){
          console.log("接收子应用来的信息",JSON.parse(tenantObj))
        }
       
      }, true);
    },
    computed: {},
    methods: {},
  };
  </script>
  <style scoped></style>
  